import {requestResponse} from '~/../config/axios.conf'
import {ciipSerUrl} from '~/../config/server.url.conf'

// 更新店铺banner
export const updateBanner = (json: any) => requestResponse('post', ciipSerUrl + '/authc/supply/shop/headerEdit', json, true)
// 获取店铺banner
export const getShopBanner = (shopid: number | string) => requestResponse('get', '/anon/supply/shop/bannerImgs', {shopid})
// 获取店铺详情 type  false根据店铺id查询   true根据 uuid 查询
export const getShopInfo = (id: number | string, type?: boolean) => {
    const url = type ? ciipSerUrl + '/authc/supply/shop/get' : '/anon/supply/shop/info'
    return requestResponse('get', url, {id}, type)
}
// 根据分类查询供方服务
export const getQiaoSupplyListByClass = (json: any) => requestResponse('get', '/anon/supplyservice/searchShopService', json)
// 案例列表
export const getCaseList = (json: any) => requestResponse('get', '/anon/supply/findProductExamplePage', json)
// 案例详情
export const getCaseInfo = (id: number | string) => requestResponse('get', '/anon/supply/findProductExampleById', {id})
